<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Vue 循环</title>
    <script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app-4">
<ol>
    <li v-for="todo in todos">
           {{todo.text}}
    </li>
</ol>
</div>
<script>
    var app4= new Vue({
        el:'#app-4',
        data:{
            todos:[
                {text:'学习JavaScript'},
                {text:'学习Vue'},
                {text:'早日成为大牛'},
                {text:'一切皆有可能！'}

            ]

        }
    })
</script>
</body>
</html>